﻿using System;
using System.Windows.Forms;

namespace roster.UI
{
    public partial class CreateRosterView : Form, ICreateRosterView
    {
        public event MethodInvoker CreateRaid;

        public CreateRosterView()
        {
            InitializeComponent();
        }

        public void Display()
        {
            txtName.Text = string.Empty;
            ShowDialog();
        }

        private void btnCreate_Click(object sender, EventArgs e)
        {
            RosterName = txtName.Text;
            CreateRaid();
            Close();
        }

        public string RosterName { get; private set; }
    }
}